#!/bin/bash
function AllAct {
        sudo /sbin/ipvsadm -L -n |grep Route|tr -s '''\t'|awk '{print $5}'| awk 'BEGIN{sum=0}{sum+=$1}END{print sum}'
}
function 9Act {
        sudo /sbin/ipvsadm -L -n | grep 111.48.19.9:6600|awk '{print $5}'
}
function 11Act {
        sudo /sbin/ipvsadm -L -n | grep 111.48.19.11:6600|awk '{print $5}'
}
function 29Act {
        sudo /sbin/ipvsadm -L -n | grep 111.48.19.29:6600|awk '{print $5}'
}
function 31Act {
        sudo /sbin/ipvsadm -L -n | grep 111.48.19.31:6600|awk '{print $5}'
}
function AllInact {
        sudo /sbin/ipvsadm -L -n |awk '{print $6}'| awk 'BEGIN{sum=0}{sum+=$1}END{print sum}'
}
function 9Inact {
        sudo /sbin/ipvsadm -L -n | grep 111.48.19.9:6600|awk '{print $6}'
}
function 11Inact {
        sudo /sbin/ipvsadm -L -n | grep 111.48.19.11:6600|awk '{print $6}'
}
function 29Inact {
        sudo /sbin/ipvsadm -L -n | grep 111.48.19.29:6600|awk '{print $6}'
}
function 31Inact {
        sudo /sbin/ipvsadm -L -n | grep 111.48.19.31:6600|awk '{print $6}'
}
$1
